package com.ea.service;

import com.ea.domain.dto.LogisticInfoDTO;
import com.ea.domain.entity.LogisticDetailInfo;
import com.ea.domain.entity.LogisticInfo;
import com.ea.domain.query.LogisticQueryDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 物流信息表 服务类
 * </p>
 *
 * @author 电器商城
 * @since 2022-11-29
 */
public interface ILogisticInfoService {

    /**
     * 根据订单id批量创建物流单
     * @param orderIdList
     */
    void createLogisticInfoBatch(List<Long> orderIdList);

    /**
     * 物流信息查询
     * @param queryDTO
     * @return
     */
    PageInfo<LogisticInfo> getLogisticInfoList(LogisticQueryDTO queryDTO);

    /**
     * 物流单明细查询
     * @param logisticId
     * @return
     */
    LogisticInfoDTO getLogisticDetailInfoList(Long logisticId);

    /**
     * 修改物流单状态
     * @param logisticId
     * @param status
     */
    void updateLogisticStatus(Long logisticId, Integer status);
}
